﻿//************************************************************ 
// Copyright © 2009 - 2010 Oleg Stuhin & Rostislav Haitovich
// To learn more about Mytrip.Mvc.Entyty visit 
// http://starterkitmytripmvc.codeplex.com/
// mytripmvc@gmail.com
// license: Microsoft Public License (Ms-PL) 
// ***********************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Mytrip.Theme
{
    /// <summary>
    /// TableElements
    /// </summary>
   public static class TableElements
   {
       /// <summary>
       /// (blue)border: solid 1px #4b6c9e;
       /// (green)border: solid 1px #709A30;
       /// width: 100%;
       /// border-collapse: collapse;
       /// </summary>
       /// <returns>static string</returns>
       public static string table()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
           }
           if (ThemeSetting.theme() == "gray")
           {
               result.AppendLine("border: solid 1px #ccc;");
           }
           if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
           }
           result.AppendLine("width: 100%;");
           result.AppendLine("border-collapse: collapse;");
           return result.ToString();
       }
       /// <summary>
       /// (blue)border: solid 1px #4b6c9e;
       /// (green)border: solid 1px #709A30;
       /// padding: 5px;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_td()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
           }
           if (ThemeSetting.theme() == "gray")
           {
               result.AppendLine("border: solid 1px #ccc;");
           }
           if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
           }
           result.AppendLine("padding: 5px;");
           return result.ToString();
       }
       /// <summary>
       /// (blue)border: solid 1px #4b6c9e;
       /// (blue)background-color: #4b6c9e;
       /// (green)border: solid 1px #709A30;
       /// (green)background-color: #709A30;
       /// color:#fff;
       /// padding: 6px 5px;
       /// text-align: left;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "blue")
           {
               result.AppendLine("border: solid 1px #4b6c9e;");
               result.AppendLine("background-color: #4b6c9e;");
           }
           if (ThemeSetting.theme() == "gray")
           {
               result.AppendLine("border: solid 1px #ccc;");
               result.AppendLine("background-color: #ccc;");
           }
           if (ThemeSetting.theme() == "green")
           {
               result.AppendLine("border: solid 1px #709A30;");
               result.AppendLine("background-color: #709A30;");
           }
           if (ThemeSetting.theme() == "gray")
           result.AppendLine("color:#333;");
           else
               result.AppendLine("color:#fff;");
           result.AppendLine("padding: 6px 5px;");
           result.AppendLine("text-align: left;");
           return result.ToString();
       }
       /// <summary>
       /// color:#fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th_a()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       /// <summary>
       /// color:#fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th_a_link()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       /// <summary>
       /// color:#fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th_a_hover()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       /// <summary>
       /// color:#fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th_a_visited()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       /// <summary>
       /// color:#fff;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_th_a_active()
       {
           StringBuilder result = new StringBuilder();
           if (ThemeSetting.theme() == "gray")
               result.AppendLine("color:#333;");
           else
           result.AppendLine("color:#fff;");
           return result.ToString();
       }
       /// <summary>
       /// padding: 0px;
       /// margin: 0px;
       /// width: 100%;
       /// border-width: 0px;
       /// </summary>
       /// <returns>static string</returns>
       public static string table_mastertable()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("width: 100%;");
           result.AppendLine("border-width: 0px;");
           return result.ToString();
       }
       /// <summary>
       /// padding: 0px;
       /// margin: 0px;
       /// vertical-align: top;
       /// border-width: 0px;
       /// </summary>
       /// <returns>static string</returns>
       public static string td_masterrighttd()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("vertical-align: top;");
           result.AppendLine("border-width: 0px;");
           return result.ToString();
       }
       /// <summary>
       /// padding: 0px;
       /// margin: 0px;
       /// vertical-align: top;
       /// border-width: 0px;
       /// width: 250px;
       /// </summary>
       /// <returns>static string</returns>
       public static string td_masterlefttd()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("padding: 0px;");
           result.AppendLine("margin: 0px;");
           result.AppendLine("vertical-align: top;");
           result.AppendLine("border-width: 0px;");
           result.AppendLine("width: 250px;");
           return result.ToString();
       }
       /// <summary>
       /// width: 40px;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_rootfolder()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 40px;");
           return result.ToString();
       }
       /// <summary>
       /// text-align: right;
       /// width: 50%;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_dableinput()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           result.AppendLine("width: 50%;");
           return result.ToString();
       }
       /// <summary>
       /// text-align: right;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_oneinput()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           return result.ToString();
       }
       /// <summary>
       /// width: 50px;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_editdelite()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 50px;");
           return result.ToString();
       }
       /// <summary>
       /// width: 10px;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_folderfile()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 10px;");
           return result.ToString();
       }
       /// <summary>
       /// text-align: center;
       /// width: 150px;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_filechangedate()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: center;");
           result.AppendLine("width: 150px;");
           return result.ToString();
       }
       /// <summary>
       /// width: 110px;
       /// text-align: center;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_filesize()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("width: 110px;");
           result.AppendLine("text-align: center;");
           return result.ToString();
       }
       /// <summary>
       /// text-align: right;
       /// vertical-align: middle;
       /// </summary>
       /// <returns>static string</returns>
       public static string th_addrole()
       {
           StringBuilder result = new StringBuilder();
           result.AppendLine("text-align: right;");
           result.AppendLine("vertical-align: middle;");
           return result.ToString();
       }
    }
}
